

type BusinessFinanceFormValues = {
  approvalNo: string;
  handler: string;
  department: string;
  childBranch: string;
  applyDate: string;
  sellerName: string;
  sellerNo: string;
  sellerAccount: string;
  invoiceType: string;
  invoiceNumber: string;
  invoiceDocumentNumber: string;
  invoiceAmount: string;
  isControlInvoicing: string;
  salesType: string;
  isreceived: string;
  reversalReason: string;
  voidReason: string;
  professionaltype: string;
  specialTicketType: string;
  invoiceTableData: DepartmentItem[];
  // Add other fields as needed
};

type DataSourceType = {
  id: React.Key;
  title?: string;
  readonly?: string;
  decs?: string;
  state?: string;
  created_at?: number;
  update_at?: number;
  children?: DataSourceType[];
};

interface customizeApiResponse {
  code: number;
  message: string;
  data:[]

}
interface ApiResponse {
  code: number;
  message: string;
 
}
interface ApiResponseCopy<T> {
  data: {
    message: string;
    code: number;
    list: T[];
    total: number;
  }
}



//销售方名称 表格数据类型 
type GithubIssueItem = {
  id: number;
  number: number;
  title: string;
  labels: {
    name: string;
    color: string;
  }[];
  invoiceAmount: string;
  invoiceNumber: string;
  sellerAccount: string;
  invoiceDocumentNumber: string;
  isControlInvoicing: string;
};
// 定义当前表格的数据类型
// 发票单表格数据
interface DepartmentItem {
  lineNumber: number;
  billingDepartment: string;
  amount: string;
  isActive: boolean;
  remark: string;
  taxCode: string;
  productInvoiceDetailsList: string[];
  CustomerName: string;
  invoiceType: string;
  specialTicketType: string;

}

// 发票信息
interface InvoiceInformationModealForm {
  current?: number;
  pageSize?: number;

  // 自定义筛选参数（根据你的业务需求添加）
  stateType?: string;
  titleName?: string;

}


interface businessFinanceIndexListTableData {
  // 基础信息
  index?: number; // 表格索引
  invoiceNo: string; // 发票单据号
  processStatus: 'pending' | 'processing' | 'completed' | 'rejected'; // 流程状态
  operator: string; // 经办人
  operateDate: string; // 经办日期 (格式: YYYY-MM-DD)
  operateDept: string; // 经办部门
  invoiceType: 'normal' | 'special'; // 开票类型 (普通/专用)
  customerName: string; // 客户名称

  // 金额信息
  totalAmountWithTax: number; // 本次开票总金额（含税）
  totalAmountWithoutTax: number; // 本次开票总金额（不含税）
  taxAmount: number; // 本次开票税额
  invoiceCategory: 'vat' | 'ordinary'; // 发票类型 (增值税/普通)
  invoiceNumber: string; // 发票号码
  invoiceCode: string; // 发票代码

  // 日期信息
  issueDate: string; // 开具日期 (格式: YYYY-MM-DD)
  postingDate: string; // 过账日期 (格式: YYYY-MM-DD)
  sapVoucherNo: string; // SAP凭证号

  // 累计金额
  totalInvoicedWithTax: number; // 开票总金额（含税）
  totalInvoicedWithoutTax: number; // 开票总金额（不含税）
  totalTax: number; // 总税额

  // 其他信息
  professionalType: string; // 专业类型
  writtenOffAmount: number; // 已核销金额
  unwrittenOffAmount: number; // 未核销金额
  invoiceUnit: string; // 开票单位抬头
  salesType: string; // 销售类型
}